import React, { Component } from 'react';
import Header from '@/components/Header/Header';
import Footer from '@/components/Footer/Footer'
class Mine extends Component {
    constructor(props) {
        super(props)
        this.state = {
            count: 0
        }
    }
    changeCount = () => {
        this.setState({
            count: this.state.count + 1
        })
    }
    render() {
        let { count } = this.state;
        return (
            <div>
                <h2>兄弟组件传值-状态提升-父组件中</h2>
                <Header count={this.state.count}></Header>
                <Footer changeCount={this.changeCount}></Footer>
            </div>
        );
    }
}

export default Mine;